import request from '@/utils/request'

// 查询聊天厅室类型列表
export function listChatroomType(query) {
  return request({
    url: '/system/chatroomType/list',
    method: 'get',
    params: query
  })
}

// 查询聊天厅室类型详细
export function getChatroomType(id) {
  return request({
    url: '/system/chatroomType/' + id,
    method: 'get'
  })
}

// 新增聊天厅室类型
export function addChatroomType(data) {
  return request({
    url: '/system/chatroomType',
    method: 'post',
    data: data
  })
}

// 修改聊天厅室类型
export function updateChatroomType(data) {
  return request({
    url: '/system/chatroomType',
    method: 'put',
    data: data
  })
}

// 删除聊天厅室类型
export function delChatroomType(id) {
  return request({
    url: '/system/chatroomType/' + id,
    method: 'delete'
  })
}

// 导出聊天厅室类型
export function exportChatroomType(query) {
  return request({
    url: '/system/chatroomType/export',
    method: 'get',
    params: query
  })
}